﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;

namespace SetPipe.Utiltiy
{
	public class PipeBoundryCurvePakcer
	{
		public PipeBoundryCurvePakcer(XYZ startPoint, XYZ endPoint, List<Curve> lstBoundryCurves, bool ifCorner, double[] valueParams)
		{
			this.startPoint = startPoint;
			this.endPoint = endPoint;
			this.ifCorner = ifCorner;
			this.lstBoundryCurves = lstBoundryCurves;
			this.width = valueParams[0];
			this.height = valueParams[1];
			this.distancefloor = valueParams[2];
			this.familyFileIndex = (int)valueParams[3];
		}

		internal double Height
		{
			get
			{
				return this.height;
			}
		}

		internal double Width
		{
			get
			{
				return this.width;
			}
		}

		public double DistanceFloor
		{
			get
			{
				return this.distancefloor;
			}
			set
			{
				this.distancefloor = value;
			}
		}

		internal int FamilyFileIndex
		{
			get
			{
				return this.familyFileIndex;
			}
		}

		public XYZ GetPoint(int index)
		{
			if (index == 0)
			{
				return this.startPoint;
			}
			return this.endPoint;
		}

		internal bool IfCorner
		{
			get
			{
				return this.ifCorner;
			}
		}

		public List<Curve> LstBoundryCurves
		{
			get
			{
				return this.lstBoundryCurves;
			}
		}

		private XYZ startPoint;

		private XYZ endPoint;

		private List<Curve> lstBoundryCurves;

		private bool ifCorner;

		private double height;

		private double width;

		private double distancefloor;

		private double endDistanceFloor;

		private int familyFileIndex;
	}
}
